import Main from '@/layout/main.vue'

const routes = [
    {
        path: '/',
        name: 'userInfo',
        meta: { title: '个人中心' },
        redirect: '/userInfo/index',
        component: Main,
        children: [
            {
                path: '/userInfo/index',
                name: 'userInfo',
                meta: {
                    title: '个人中心',
                    parentPath: '/',
                    icon: 'icon_user',
                    permission: ['view']
                },
                component: () => import('@/views/userInfo/index.vue')
            },
            {
                path: '/userInfo/edit',
                name: 'userEdit',
                meta: {
					hidden: true,
                    title: '修改密码',
                    parentPath: '/',
                    icon: 'icon_user_guanli',
                    permission: ['view'],
                    keepAlive: true
                },
                component: () => import('@/views/userInfo/edit.vue')
            }
        ]
    }
]

export default routes
